]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
scripting: Fix argument list of createTestWindow()
authorYussuf Khalil <dev@pp3345.net>
Wed, 25 Apr 2018 21:47:06 +0000 (23:47 +0200)
committerYussuf Khalil <dev@pp3345.net>
Wed, 25 Apr 2018 21:47:06 +0000 (23:47 +0200)
Commit f285f2c6 changed Scripting.createTestWindow() to accept a parameter
object instead of a parameter list but forgot to remove the width and height
arguments. This breaks the "core" test as all windows are created with default
settings.

js/perf/hwtest.js
js/ui/scripting.js

index 5a7621d92ba9877ea51c446841fb315331187b27..7555a8ab25450278805da9bae4820ab5281d0575 100644 (file)
@@ -136,8 +136,7 @@ function run() {
     global.frame_finish_timestamp = true;
 
     for (let k = 0; k < 5; k++)
-        yield Scripting.createTestWindow(640, 480,
-                                         { maximized: true });
+        yield Scripting.createTestWindow({ maximized: true });
     yield Scripting.waitTestWindows();
 
     yield Scripting.sleep(1000);
@@ -158,8 +157,7 @@ function run() {
     yield Scripting.destroyTestWindows();
     Main.overview.hide();
 
-    yield Scripting.createTestWindow(640, 480,
-                                     { maximized: true,
+    yield Scripting.createTestWindow({ maximized: true,
                                        redraws: true});
     yield Scripting.waitTestWindows();
 
index e971fcd84a1fd07915833688d3cb1cea5722458e..c53083210048a25db44aa0ad754654b6928d2945 100644 (file)
@@ -133,7 +133,7 @@ function _callRemote(obj, method, ...args) {
  * because of the normal X asynchronous mapping process, to actually wait
  * until the window has been mapped and exposed, use waitTestWindows().
  */
-function createTestWindow(width, height, params) {
+function createTestWindow(params) {
     params = Params.parse(params, { width: 640,
                                     height: 480,
                                     alpha: false,